package com.hyb.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 员工信息
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_staff")
@ApiModel("员工信息")
public class Staff implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "staff_id", type = IdType.AUTO)
    @ApiModelProperty("员工id")
    private Integer staffId;
    @ApiModelProperty("员工名字")
    private String staffName;
    @ApiModelProperty("员工邮箱")
    private String staffEmail;
    @ApiModelProperty("员工生日")
    private LocalDate staffBirth;
    @ApiModelProperty("员工电话")
    private String staffTel;
    @ApiModelProperty("员工性别")
    private String staffSex;
    @ApiModelProperty("员工入职时间")
    private LocalDate staffHiredate;
    @ApiModelProperty("员工状态")
    private String staffState;
    @ApiModelProperty("密码")
    private String staffPassword;
    @ApiModelProperty("盐值")
    private String staffSalt;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE,update = "now()")
    private LocalDateTime updateTime;
    @ApiModelProperty("修改次数")
    @Version
    private Integer version;
}
